Skip to main content

安装 Percona-XtraDB-Cluster

配置Percona存储库

官方文档 https://www.percona.com/doc/percona-repo-config/percona-release.html#rpm-based-gnu-linux-distributions

Ubuntu

sudo apt-get update
sudo apt-get install -y wget gnupg2 lsb-release
wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb
sudo dpkg -i percona-release_latest.generic_all.deb

注意

如果dpkg由于缺少依赖项而在此步骤中失败,请运行apt以下命令:

$ sudo apt-get install --fix-broken

CentOS

sudo yum instll https://repo.percona.com/yum/percona-release-latest.noarch.rpm

安装

官方文档 https://www.percona.com/doc/percona-xtradb-cluster/5.7/install/yum.html#yum

从Binary Tarball安装Percona XtraDB群集

Percona为通用压缩包提供了所有必需的文件和二进制文件,以供手动安装。

您可以从https://www.percona.com/downloads/Percona-XtraDB-Cluster-57下载适当的tarball程序包

“ Linux-通用”部分中有多个压缩文件,具体取决于发行版中可用的OpenSSL库:

  • ssl100:适用于9之前的Debian和14.04之前的Ubuntu
  • ssl101:适用于CentOS 6和CentOS 7
  • ssl102:适用于从14.04开始的Debian 9和Ubuntu版本

例如,您可以使用curl以下方式:

curl -O https://www.percona.com/downloads/Percona-XtraDB-Cluster-57/Percona-XtraDB-Cluster-5.7.14-26.17/binary/tarball/Percona-XtraDB-Cluster-5.7.14-rel8-26.17.1.Linux.x86_64.ssl101.tar.gz